const Koa = require('koa')
const parser = require('koa-bodyparser')
const InitManager = require('./core/init')
const catchError = require('./middle/catch')

const app = new Koa()
app.use(catchError)
app.use(parser())
InitManager.initCore(app)


app.listen(3000, () => {
  console.log('Serve in 3000')
})